
/**
 @file ctc_pmem.h

 @date 2020-03-17

 @version v5.0

 The file defines pmem api
*/

#ifndef _CTC_PMEM_H_
#define _CTC_PMEM_H_
#ifdef __cplusplus
extern "C" {
#endif


struct ctc_pmem_cfg_s
{
 char  file_name[32]; 
 uint32 size;
 uint8 create;
 uint8 type;    /* 0, wb; 1, sdb */
};
typedef struct ctc_pmem_cfg_s ctc_pmem_cfg_t;

extern uintptr
ctc_pmem_init(uint8 lchip,ctc_pmem_cfg_t *pcfg);
extern int32
ctc_pmem_deinit(uint8 lchip);

extern int32
ctc_pmem_sync(uint8 lchip, uintptr addr,uint32 size);

#ifdef __cplusplus
}
#endif

#endif  /* _CTC_WARMBOOT_H_*/
